<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">
function jumpPage(pagenum){

	document.getElementById("pageSize").value=${page.pageSize};
	if(pagenum=="fristPage")
	  {
		 document.getElementById("pageNo").value= 1;
		document.forms[0].submit();
      }else if (pagenum=="frontPage")
          {
    	  document.getElementById("pageNo").value= ${page.frontpage};
    	  document.forms[0].submit();
          }else if(pagenum=="nextPage")
             { 
               document.getElementById("pageNo").value=${page.nextpage};
        	    document.forms[0].submit();
             }else if(pagenum=="lastPage")
                 {
            	
            	 document.getElementById("pageNo").value=${page.totalPage}; 
            	            	 
            	   document.forms[0].submit();
                 } else if(pagenum=="goto")
                      {
                	     document.getElementById("pageNo").value= document.getElementById('goto').value;
                	     document.forms[0].submit();
                      }
	}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" >
			  <input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize}"/> 
			  <input type="hidden" id="pageNo" name="pageNo" value="${page.pageNo}"/> 
              <input type="hidden" id="totalPage" name="totalPage" value="${page.totalPage}"/> 
			 <input type="hidden" id="frontpage" name="frontpage" value="${page.frontpage}"/> 
			 <input type="hidden" id="nextpage" name="nextpage" value="${page.nextpage}"/> 
			 <input type="hidden" id="totalCount" name="totalCount" value="${page.totalCount}"/>
			 
			           共${page.totalCount}条记录&nbsp; 每页${page.pageSize}条&nbsp;
		      <c:choose>
                 <c:when test="${page.pageNo=='1'}">    
                    <input type="button"  class="btn btn-default btn-sm"  name="fristPage" value="首 页" onclick="jumpPage('fristPage');" disabled="disabled"> 
                 </c:when>   
                 <c:otherwise> 
                     <input type="button"  class="btn btn-default btn-sm"  name="fristPage" value="首 页" onclick="jumpPage('fristPage');" > 
                 </c:otherwise>  
              </c:choose>
			  <c:choose>
                 <c:when test="${page.pageNo=='1'}">    
                   <input type="button"  class="btn btn-default btn-sm"  name="frontPage" value="上一页" onclick="jumpPage('frontPage');" disabled="disabled"/>
                 </c:when>   
                 <c:otherwise> 
                     <input type="button"  class="btn btn-default btn-sm"  name="frontPage" value="上一页" onclick="jumpPage('frontPage');" />
                 </c:otherwise>  
              </c:choose>
			 <c:choose>
                 <c:when test="${page.pageNo==page.totalPage}">    
                   <input type="button"  class="btn btn-default btn-sm"  name="nextPage" value="下一页" onclick="jumpPage('nextPage');" disabled="disabled""/> 
                 </c:when>   
                 <c:otherwise> 
                    <input type="button"  class="btn btn-default btn-sm"  name="nextPage" value="下一页" onclick="jumpPage('nextPage');"/> 
                 </c:otherwise>  
              </c:choose>
			<c:choose>
                 <c:when test="${page.pageNo==page.totalPage}">    
                   <input type="button"  class="btn btn-default btn-sm"  name="lastPage" value="尾 页" onclick="jumpPage('lastPage');" disabled="disabled"/>&nbsp; 当前${page.pageNo}/${page.totalPage} 页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 </c:when>   
                 <c:otherwise> 
                   <input type="button"  class="btn btn-default btn-sm"  name="lastPage" value="尾 页" onclick="jumpPage('lastPage');"/>&nbsp; 当前${page.pageNo}/${page.totalPage} 页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 </c:otherwise>  
              </c:choose>
				
			</td>
		</tr>
</table>